package com.general.framework.core.schema;

import com.general.framework.core.lang.Lists;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@ApiModel("树模型")
@Data
public class TreeModel {

    @ApiModelProperty("ID")
    private Long id;

    @ApiModelProperty("名称")
    private String label;

    @ApiModelProperty("子级")
    private List<TreeModel> children = Lists.emptyList();

}
